﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OL.FrameCore.Application.SysLog.Dto
{
    public class GetUserOperateLogListResponse
    {
        public int Id { get; set; }
        /// <summary>
        /// 0新增 1修改 2删除 3启用 4禁用 5重置密码
        /// </summary>
        public int OperateType { get; set; }
        public string OperateTypeText
        {
            get
            {
                switch (OperateType)
                {
                    case 0:
                        return "新增";
                    case 1:
                        return "修改";
                    case 2:
                        return "删除";
                    case 3:
                        return "启用";
                    case 4:
                        return "禁用";
                    case 5:
                        return "重置密码";
                }
                return "";
            }
        }
        public string IP { get; set; }
        public string Remark { get; set; }
        public int UserId { get; set; }
        public string UserName { get; set; }
        public int OperateId { get; set; }
        public string OperateName { get; set; }
        public DateTime CreateTime { get; set; }
    }
}
